package com.rd.student.jiaji.class1.jinhongyu.day0802;

public class Pig extends Animal {

    public Pig(String name) {
        super(name);
    }

    @Override
    void voice() {
        System.out.println("猪叫");
    }

    @Override
    void enjoy() {
        System.out.println("猪开心");
    }
}
